import VueRouter from 'vue-router'
import Home from '../components/tabber/HomeContainer.vue'
import Mito from '../components/tabber/MitoContainer.vue'
import Shopcar from '../components/tabber/ShopcarContainer.vue'
import Search from '../components/tabber/SearchContainer.vue'
import NewsList from '../components/news/NewsList.vue'
import Newsinfo from '../components/news/Newsinfo.vue'


var router = new VueRouter({
    routes: [        //路由规则
        { path: '/', redirect:'/home'},
        { path: '/home', component: Home },
        { path: '/mito', component: Mito },
        { path: '/shopcar', component: Shopcar },
        { path: '/search', component: Search },
        { path: '/home/newslist', component:NewsList},
        { path: '/home/newsinfo/:id', component: Newsinfo}

    ],
    linkActiveClass: 'mui-active'       // 设置覆盖默认的高亮类，替换为mui的高亮类
})

export default router

